import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        MATH m=new MATH();
        Scanner scanner=new Scanner(System.in);
        while (scanner.hasNext()){
            String s=scanner.nextLine();
        }

//        String [] a={"eat", "tea", "tan", "ate", "nat", "bat"};
//        System.out.println(new Array().groupAnagrams(a));
    }

}
